package com.fanml.xyz;

import java.io.Serializable;
import java.sql.Connection;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: HandleDataMart
 * @Description: TODO
 * @author: ChuanHui.Z
 * @date: 2020年9月9日 下午8:48:38
 */
public abstract class HandleDataMart implements Serializable {

	/**
	 * @fieldName: serialVersionUID
	 * @fieldType: long
	 * @Description: TODO
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * @fieldName: listData
	 * @fieldType: List<Map<String,Object>>
	 * @Description: TODO 源数据
	 */
	private List<Map<String, Object>> listData;

	/**
	 * @fieldName: targetConnection
	 * @fieldType: Connection
	 * @Description: TODO 目标数据源
	 */
	private Connection targetConnection;

	public Connection getTargetConnection() {
		return targetConnection;
	}

	public void setTargetConnection(Connection targetConnection) {
		this.targetConnection = targetConnection;
	}

	public List<Map<String, Object>> getListData() {
		return listData;
	}

	public void setListData(List<Map<String, Object>> listData) {
		this.listData = listData;
	}

	/**
	 * @Title: run
	 * @Description: TODO 业务逻辑
	 * @return: void
	 */
	protected abstract void run();

}
